home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Button.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-02  |  1.7 KB  |  78 lines

  1. //
  2. //  $VER: Button.h      1.2 (31 Aug 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  31 Aug 1996 :   1.2 : Ă„nderungen
  22. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  23. //
  24.  
  25. #ifndef CPP_TWIMUI_BUTTON_H
  26. #define CPP_TWIMUI_BUTTON_H
  27.  
  28. #ifndef CPP_TWIMUI_TEXT_H
  29. #include <classes/twimui/text.h>
  30. #endif
  31.  
  32. class MUIButton : public MUIText
  33.     {
  34.     public:
  35.         MUIButton(const STRPTR name)
  36.             :   MUIText(
  37.                     MUIA_Frame, MUIV_Frame_Button,
  38.                     MUIA_InputMode, MUIV_InputMode_RelVerify,
  39.                     MUIA_Background, MUII_ButtonBack,
  40.                     MUIA_Text_Contents, name,
  41.                     MUIA_Text_PreParse, MUIX_C,
  42.                     TAG_DONE)
  43.             { };
  44.         MUIButton(const STRPTR name, const UBYTE cc)
  45.             :   MUIText(
  46.                     MUIA_Frame, MUIV_Frame_Button,
  47.                     MUIA_ControlChar, cc,
  48.                     MUIA_InputMode, MUIV_InputMode_RelVerify,
  49.                     MUIA_Background, MUII_ButtonBack,
  50.                     MUIA_Text_Contents, name,
  51.                     MUIA_Text_PreParse, MUIX_C,
  52.                     MUIA_Text_HiChar, cc,
  53.                     TAG_DONE)
  54.             { };
  55.         MUIButton(const MUIButton &p) : MUIText((MUIText &)p) { };
  56.         virtual ~MUIButton();
  57.         MUIButton &operator= (const MUIButton &);
  58.     };
  59.  
  60. class MUILabButton
  61.     :   public MUILabelHelp,
  62.         public MUIButton
  63.     {
  64.     public:
  65.         MUILabButton(const STRPTR lab)
  66.             :   MUILabelHelp(lab),
  67.                 MUIButton(MUILabelHelp::gLab(),MUILabelHelp::gCC())
  68.             { };
  69.         MUILabButton(const MUILabButton &p)
  70.             :   MUILabelHelp((MUILabelHelp &)p),
  71.                 MUIButton((MUIButton &)p)
  72.                 { };
  73.         virtual ~MUILabButton();
  74.         MUILabButton &operator= (const MUILabButton &);
  75.     };
  76.  
  77. #endif
  78.